package cn.vawn.medical.service;

import cn.vawn.base.dto.PageDTO;
import cn.vawn.base.dto.RequestPageDTO;
import cn.vawn.medical.entity.Organization;
import cn.vawn.medical.entity.Uniterm;

import java.util.Date;
import java.util.List;

public interface IOrganizationService {

    /**
     * 查询机构单项
     * @param requestPageDTO
     * @param name
     * @param organizationId
     * @param startTime
     * @param endTime
     * @return
     */
    PageDTO searchUniterm(RequestPageDTO requestPageDTO, String name, Integer organizationId, Date startTime, Date endTime);

    /**
     * 获取全部机构
     * @return
     */
    List<Organization> getAllOrganization();

    /**
     * 修改单项状态
     * @param uniterm
     */
    void changeIsHomeStatistics(Uniterm uniterm);

    /********
     *
     * @param organizationId
     * @return 默认问卷id
     */
    int getDefaultPaperIdByOrgId(int organizationId);
}
